package com.lyp.qczp.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.lyp.qczp.entity.Organiza;

public interface Organizadao extends JpaRepository<Organiza, Integer>,JpaSpecificationExecutor<Organiza>{
	@Query(value = "select * from organiza\r\n" + 
			"where o_parent=?1",nativeQuery = true)
	List<Organiza> selectbyfu(Integer oParent);
}
